﻿using System.Collections.Generic;
using System.Threading.Tasks;

namespace Infrastructure.Http
{
    public interface IHttpService
    {
        Task<byte[]> Get(string url, string authorization = null);
        Task<string> GetText(string url, string authorization = null);
        Task<string> PostBody(string Url, object obj, string authorization = null);
        Task<string> PostFrom(string Url, IDictionary<string, object> parameters, string authorization = null);
        Task<string> PostJson(string url, string json, string authorization = null);
    }
}